Skip to content

fix: cache block index instead of block offset - #534

Merged
dkharms merged 2 commits into
mainfrom
531-fix-key
Sep 29, 2026
Merged

dkharms merged 2 commits into
mainfrom
531-fix-key

Conversation

@dkharms

@dkharms dkharms commented Sep 19, 2026

Copy link
Copy Markdown
Member

Description

In this pull request I've reworked caching for DocBlock -- now as a key we use block index not the block offset (I guess, 2^32 blocks will be more than enough).

Fixes #531


  • I have read and followed all requirements in CONTRIBUTING.md;
  • I used LLM/AI assistance to make this pull request;

If you have used LLM/AI assistance please provide model name and full prompt:

Model: {{model-name}}
Prompt: {{prompt}}

@codecov-commenter

codecov-commenter commented Sep 19, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 90.69767% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 76.87%. Comparing base (35605c5) to head (89a6e55).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
storage/docs_reader.go 63.63% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #534      +/-   ##
==========================================
- Coverage   76.95%   76.87%   -0.09%     
==========================================
  Files         248      248              
  Lines       18837    18845       +8     
==========================================
- Hits        14496    14487       -9     
- Misses       4341     4358      +17     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@eguguchkin eguguchkin added this to the v0.79.0 milestone Sep 21, 2026
@dkharms
dkharms enabled auto-merge (squash) September 29, 2026 07:50
@dkharms
dkharms merged commit 1a1b089 into main Sep 29, 2026
8 checks passed
@dkharms
dkharms deleted the 531-fix-key branch September 29, 2026 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

.docs files larger than 4 GiB return wrong documents

4 participants